{% extends "front/Base.html" %}

{% block title %}
    <title>图书:{{ book.name }}</title>
{% endblock %}

{% block body %}
    <div class="container-fluid center col-8">
        <div class="jumbotron">
          <h1 class="display-4 text-center">书名:{{book.name}}</h1>
          <p class="lead  text-center">分类:{{ book.board.name }} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;作者:{{ book.author_name }}</p>
          <hr class="my-4">
          <p><span class="text-danger">图书简介:</span>{{ book.desc }}</p>
            {% if book.is_borrowed ==0 %}
                <a class="btn btn-primary btn-lg offset-5" href="{{url_for("front.borrow_book",book_id=book.id)}}" role="button">申请借阅</a>
                {% else %}
                <p class="text-center text-danger">已借出{{ book.is_borrowed }}</p>

            {% endif %}

        </div>
    </div>
{% endblock %}